<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>{$lang.home}{if $ur_here} - {$ur_here} {/if}</title>
<meta name="Copyright" content="Douco Design." />
<link href="templates/public.css" rel="stylesheet" type="text/css">
{include file="javascript.htm"}
<script type="text/javascript" src="images/jquery.autotextarea.js"></script>
<script type="text/javascript" src="images/layer/layer.js"></script>
</head>
<body>
<div id="dcWrap">
 {include file="header.htm"}
 <div id="dcLeft">{include file="menu.htm"}</div>
 <div id="dcMain">
   {include file="ur_here.htm"}
   <div id="order" class="mainBox" style="{$workspace.height}">
    <h3><a href="{$action_link.href}" class="actionBtn">{$action_link.text}</a>{$ur_here}</h3>
    
    <!-- {if $rec eq 'default'} 订单列表 -->
    <div class="filter">
      <form action="order.php" method="post">
        <select name="state">
          <option value="">订单状态</option>
          {foreach from=$lang.order_state_name item=v key=k}
          <option value="{$k}">{$lang.order_state_name[$k]}</option>
          {/foreach}
        </select>
        <select name="paystate">
          <option value="">支付状态</option>
          {foreach from=$lang.order_paystate_name item=v key=k}
          <option value='{$k}'>{$lang.order_paystate_name[$k]}</option>
          {/foreach}
        </select>
        <input name="order_no" class="inpMain" placeholder="输入订单号" value="" size="20" type="text">
        <input name="submit" class="btnGray" value="查询" type="submit">
        <input type="hidden" name="user_id" value="{$user_id}">
      </form>
    </div>
    <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
     <tr>
      <th width="30" align="center">{$lang.record_id}</th>
      <th align="left">{$lang.order_no}</th>
      <th align="left">{$lang.product_category}</th>
      <th align="center">{$lang.order_time}</th>
      <th align="center">{$lang.order_user}</th>
      <th align="center">{$lang.mobile}</th>
      <th align="center">{$lang.total_price}</th>
      <th align="center">{$lang.order_address}</th>
      <th align="center">{$lang.invoice}:<{$lang.invoice_title}></th>
      <th align="center">{$lang.order_state}</th>
      <th align="center">{$lang.order_paystate}</th>
      <th align="center">{$lang.handler}</th>
     </tr>
     <!-- {foreach from=$order_list item=order_list} -->
     <tr>
      <td align="center">{$order_list.id}</td>
      <td>{$order_list.order_no}</td>
      <td>{$order_list.cat_name}</td>
      <td align="center">{$order_list.add_time}</td>
      <td align="center">{$order_list.user_name}</td>
      <td align="center">{$order_list.mobile}</td>
      <td align="center">{$order_list.total_price}</td>
      <td align="center">{$order_list.address}</td>
      <td align="center">{$lang.invoice_or[$order_list.invoice]}:<{$order_list.invoice_title}></td>
      <td align="center">{$lang.order_state_name[$order_list.state]}</td>
      <td align="center">{$lang.order_paystate_name[$order_list.paystate]}</td>
      <td align="center">
      <a href="javascript:void(0)" onclick="lay_open('order.php?rec=detail&order_no={$order_list.order_no}')">{$lang.order_detail}</a> | <a href="order.php?rec=del&id={$order_list.id}">{$lang.del}</a></td>
     </tr>
     <!-- {/foreach} -->
    </table>
    {if $order_list}{include file="pager.htm"}{/if}
    <!-- {/if} -->
    
    <!-- {if $rec eq 'edit' || $rec eq 'add'} 订单编辑 -->
    <form action="order.php?rec=update" method="post">
     <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
      <tr>
       <td width="100" align="right">{$lang.order_username}</td>
       <td>
        <input type="text" name="user_name" value="{$order_info.user_name}" size="40" class="inpMain" {if $user.action_list neq 'ALL'}readonly="true"{/if}/>
       </td>
      </tr>
      <tr>
       <td width="100" align="right">{$lang.order_email}</td>
       <td>
        <input type="text" name="email" value="{$order_info.email}" size="40" class="inpMain" />
       </td>
      </tr>
      <tr>
       <td width="100" align="right">{$lang.order_role}</td>
       <td>
        <select name="role">
         <!-- {foreach from=$lang.order_rolename key=k item=v} -->
         <option {if $k eq $order_info.role}selected=selected{/if} value="{$k}">{$v}</option>
         <!-- {/foreach} -->
        </select>
       </td>
      </tr>
      <!-- {if $if_check} -->
      <tr>
       <td align="right">{$lang.order_old_password}</td>
       <td>
        <input type="password" name="old_password" size="40" class="inpMain" />
       </td>
      </tr>
      <!-- {/if} -->
      <tr>
       <td align="right">{$lang.order_new_password}</td>
       <td>
        <input type="password" name="password" size="40" class="inpMain" />
       </td>
      </tr>
      <tr>
       <td align="right">{$lang.order_new_password_confirm}</td>
       <td>
        <input type="password" name="password_confirm" size="40" class="inpMain" />
       </td>
      </tr>
      <tr>
       <td></td>
       <td>
        <input type="hidden" name="token" value="{$token}" />
        <input type="hidden" name="id" value="{$order_info.user_id}" />
        <input type="submit" name="submit" class="btn" value="{$lang.btn_submit}" />
       </td>
      </tr>
     </table>
    </form>
    <!-- {/if} -->
    <!-- {if $rec eq 'order_log'} 操作日志 -->
    <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
     <tr>
      <th width="30" align="center">{$lang.record_id}</th>
      <th width="150" align="left">{$lang.order_log_create_time}</th>
      <th width="100" align="center">{$lang.order_log_user_id}</th>
      <th align="left">{$lang.order_log_action}</th>
      <th width="100" align="center">{$lang.order_log_ip}</th>
     </tr>
     <!-- {foreach from=$log_list item=log_list} -->
     <tr>
      <td align="center">{$log_list.id}</td>
      <td>{$log_list.create_time}</td>
      <td align="center">{$log_list.user_name}</td>
      <td align="left">{$log_list.action}</td>
      <td align="center">{$log_list.ip}</td>
     </tr>
     <!-- {/foreach} -->
    </table>
    {include file="pager.htm"}
    <!-- {/if} -->
   </div>
 </div>
 {include file="footer.htm"}
 </div>
</body>
</html>